package com.quanyue.haircut.shop.service;

import com.quanyue.haircut.domain.entity.UserCoupon;
import com.quanyue.haircut.shop.dto.CouponDetail;
import com.vhuomai.mybatis.mapper.page.Page;
import com.vhuomai.mybatis.mapper.page.PageRequest;

import java.util.List;

public interface CouponUserService {
    void createCouponUser(List<UserCoupon> userCoupons);

    void deleteCouponUser(Integer couponUserId);

    // 1代表查询已使用，0代表未使用， 其它代表查询全部
    Page <CouponDetail> couponUser(PageRequest request, Integer bit, Integer userId);
}
